<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Axios测试</title>
		<script src="../js/axios.js"></script>
	</head>
	<body>
		<h1>Axios测试案例</h1>
		<script>
			/*
			1.axios.post axios.post(URL地址,传递的数据)
			语法:1.参数 axios.post(url地址,数据对象)
			axios.get(url,{params:对象})请求写法
			 * */
			 let url1 = "http://localhost:8080/axios/saveUser"
			let user1={id:100, name:"猫",age:2,sex:"母"}
			axios.post(url1,user1)
			.then(function(promise){
				console.log(promise.data)
			})
		</script> 
	</body>
</html>
